import express  from 'express'
import routes from './routes' // 路由
// 文章 https://juejin.cn/post/7069770431871320078
const app = express()

app.use(express.json())

const PORT = 1337

// 启动
app.listen(PORT, async () => {
    console.log(`App is running at http://localhost:${PORT}`)
    routes(app)
})
